package com.yanqu.road.server.cmd.activity.cross;

import com.yanqu.road.pb.cross.activity.CrossActivityProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;


@Cmd(code = Protocol.S_CROSS_ACTIVITY_TEAM_RANK_LIST, desc = "跨服活动队伍排行")
public class CrossActivityTeamRankListCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        CrossActivityProto.CrossActivityTeamRankListReqMsg respMsg = CrossActivityProto.CrossActivityTeamRankListReqMsg.parseFrom(packet.getBytes());
        player.sendUnionActivityGroupPacket(Protocol.C2_CROSS_GET_ACTIVITY_TEAM_RANK, respMsg.toBuilder(), respMsg.getActivityId());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
